<template>
	<view  style="text-align: left;">
		<view>
			<span>时间倒计时：</span>
			<span>{{dataObj.countDownStr}}</span>
		</view>
		<view>
			<span>试题：</span><span>{{dataObj.ti.questionsname}}</span>
		</view>
		<view>
			<span>回答：</span>
			<textarea style="height: 300upx;border:1px solid #bbb;width: 100%;" :disabled="dataObj.textDisabled" :value="textValue" @input="textAreaInput"/>
		</view>
	</view>

	
</template>

<script>

	export default {
		components: {
		},
		name: 'zhiyi-answer',
		data() {
			return {}
		},
		onLoad() {
			console.log('onLoad')
		},
		onHide(){
			console.log('onHide')
		},
		onShow() {
			console.log('onShow')
		},
		onReady() {
			console.log('onReady')
		},
		mounted() {
			console.log('mounted')
		},
		props: {
			dataObj: {
				type: Object,
				default: () => {}
			},
			textValue:{
				type: String,
				default: ''
			}
			
		},
		methods: {
			textAreaInput(e){
				let {value} = e.detail
				// console.log(value)
				this.$emit('myAnswerHandler',value)
			}
		}
	}
</script>

<style>
</style>
